[Test] Add realistic benchmark input profiles - #1144
Open
0z5a wants to merge 1 commit into
Open
Conversation
This was referenced Aug 21, 2026
[Perf][B300] Generate Comba decay matrices with a product scan
heiheiha798/flash-linear-attention#10
Open
0z5a
force-pushed
the
codex/realistic-distribution-benchmarks
branch
from
August 31, 2026 08:16
6552160 to
9982377
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add opt-in, reproducible benchmark input profiles that better match the distributions produced by FLA layers. The op runner now supports seeded
realisticinputs for GLA, GDN, KDA, Comba, and delta-rule workloads, including normalized or learned decay gates, SiLU activations, and Comba's correlatedpinput. The training-throughput benchmark also supports exact-budget log-normal packed sequence lengths.The existing
syntheticop profile andrandompacked-length mode remain the defaults. This changes benchmark input generation only; no kernel, layer, model, or public operator implementation changes.Addresses part of #350.
Test plan
python scripts/find_dependent_tests.py benchmarks/benchmark_training_throughput.py benchmarks/distributions.py benchmarks/ops/registry.py benchmarks/ops/run.py tests/test_benchmark_distributions.pytests/test_benchmark_distributions.py.python -m pytest -q tests/test_benchmark_distributions.pychunk_gla,chunk_gated_delta_rule,chunk_kda, andchunk_comba.pre-commit run --files benchmarks/benchmark_training_throughput.py benchmarks/distributions.py benchmarks/ops/registry.py benchmarks/ops/run.py tests/test_benchmark_distributions.pypython scripts/check_header.py --checkFLA_BENCH_OP_WARMUP_ITERS=1 FLA_BENCH_WARMUP_MS=5 FLA_BENCH_REP_MS=10 python -m benchmarks.ops.run --op chunk_gla chunk_gdn chunk_kda chunk_comba --input-profile realistic --seed 42 --modes fwd --custom-shapes '{"smoke":{"B":1,"T":256,"H":2,"D":64}}' --base mainmin=49,median=211,p90=431.6, andmax=1024.Benchmark / NCU (kernel changes only)
Not applicable. This PR does not change kernel code or claim a kernel speedup; the RTX 5080 run above is a functionality smoke for the benchmark harness.
Breaking changes
None. New profiles are opt-in and existing defaults are unchanged.
Checklist